package com.ruoyi.subscribe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息订阅对象 gc_subscribe
 *
 * @author ruoyi
 * @date 2025-05-14
 */
@ApiModel
public class Subscribe extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id")
    private String userId;

    /** 模板id */
    @Excel(name = "模板id")
    @ApiModelProperty(value = "模板id")
    private String templateId;

    /** 订阅状态 */
    @Excel(name = "订阅状态")
    @ApiModelProperty(value = "订阅状态")
    private String isSubscribed;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setTemplateId(String templateId)
    {
        this.templateId = templateId;
    }

    public String getTemplateId()
    {
        return templateId;
    }
    public void setIsSubscribed(String isSubscribed)
    {
        this.isSubscribed = isSubscribed;
    }

    public String getIsSubscribed()
    {
        return isSubscribed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("templateId", getTemplateId())
            .append("isSubscribed", getIsSubscribed())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .toString();
    }
}
